package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"register/controllers"
)

func init() {
	beego.Router("/add", &controllers.RegisterController{}, "post:Add")

	beego.Router("/list", &controllers.RegisterController{}, "get:List")

	beego.Router("/register", &controllers.HospitalController{}, "post:Register")
	beego.Router("/lists", &controllers.HospitalController{}, "get:Lists")
}
